import api from "../libs/api.js";

export function GetResumes() {
    return api({
        url: '/resumes',
        method: 'GET'
    })
}

export function CreateResume(data) {
    return api({
        url: '/resumes',
        method: 'POST',
        data: data
    })
}

export function UpdateResume(id, data) {
    return api({
        url: '/resumes/' + id,
        method: 'PUT',
        data
    })
}

export function DeleteResume(id) {
    return api({
        url: '/resumes/' + id,
        method: 'DELETE'
    })
}

export function GetResume(id) {
    return api({
        url: '/resumes/' + id,
        method: 'GET'
    })
}
